﻿FROM mcr.microsoft.com/dotnet/core/runtime:3.0-alpine3.9
WORKDIR /app
COPY /bin/release/netcoreapp3.0/linux-musl-x64/publish /app
#定义时区参数
ENV TZ=Asia/Shanghai

#设置时区
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
EXPOSE 2333
CMD ["dotnet","UAVDemo.Server.dll"]